/**
 * 数据图层管理全局状态
 * @type {{modelPlotLayer: null}}
 */

const state = {
  // 绘制模型层
  modelPlotLayer: null
}

const mutations = {
  SET_PlotLayer: (state, layer) => {
    state.modelPlotLayer = layer
  }
}

const actions = {
  setViewer: ({ commit }, viewer) => {
    commit("SET_PlotLayer", viewer)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
